package com.ruoyi.common.config;


import org.springframework.stereotype.*;
import org.springframework.boot.context.properties.*;

@Component
@ConfigurationProperties(prefix = "server")
public class ServerYml {


    /**
     * 用于档板代码判断
     *  if(!("PRO").equals(ServerYml.getRunEnv())){// 你的档板代码 }
     */
    private static String runEnv;
    public static String getRunEnv() {
        return runEnv;
    }
    public void setRunEnv(String runEnv) {
        ServerYml.runEnv = runEnv;
    }



}